<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:o="http://omnifaces.org/ui">
	<ui:composition template="./main.xhtml">
		<ui:define name="content">
			<br/>
			<h:form>
				<p:messages autoUpdate="true" closable="true" />
				<p:panelGrid columns="1">
					<f:facet name="header">  
						今日の日報を入力してください。
	    			</f:facet>
	    			<h:panelGroup>
	    				作業時間：<p:inputMask value="#{dayConversation.selectDaily.startTime}" id="startTime" mask="99:99" size="3"/>〜<p:inputMask value="#{dayConversation.selectDaily.endTime}" mask="99:99" id="endTime" size="3"/>
	    			</h:panelGroup>
	    			<p:inputTextarea rows="10" cols="70" value="#{dayConversation.selectDaily.content}" />
					<f:facet name="footer">
						<p:commandButton action="#{dayController.saveDaily}" value="保存" styleClass="button_big"/>
						<p:commandButton action="#{dayController.cancel}" value="キャンセル" immediate="true" styleClass="button_big"/>
					</f:facet>
				</p:panelGrid>
				<o:validateMultiple validator="#{timeRangeValidator}" message="#{timeRangeValidator.message}" components="startTime endTime"/>
			</h:form>
		</ui:define>
	</ui:composition>
</html>